/*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/

CKEDITOR.editorConfig = function( config )
{
  // Not a very usefull addition	
	config.removePlugins = 'elementspath';
	config.height = '500px';
	// Needs to be bound at A4 size
	//config.removePlugins = 'resize';
	config.resize_enabled = true;
	
	// Toolbar hiding bugs size
	config.toolbarCanCollapse = false;
	config.enterMode = CKEDITOR.ENTER_DIV;
	config.htmlEncodeOutput = true;
	// Make sure everything is set into page
	//config.fullPage = true;
	
	// Some items are not needed
	config.toolbar = 'Trimmed';
	config.toolbar_Trimmed =
  [
    ['Source','-','NewPage','Preview','-','Templates'],
    ['Cut','Copy','Paste','PasteText','PasteFromWord','-','Print', 'SpellChecker', 'Scayt'],
    ['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
    '/',
    ['Bold','Italic','Underline','Strike','-','Subscript','Superscript'],
    ['NumberedList','BulletedList','-','Outdent','Indent','Blockquote','CreateDiv'],
    ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','PageBreak'],
    ['Link','Unlink','Anchor'],
    ['Image','Table','HorizontalRule','Smiley','SpecialChar'],
    '/',
    ['Styles','Format','Font','FontSize'],
    ['TextColor','BGColor'],
    ['ShowBlocks'],
    '/',
    ['spadesIcon', 'heartsIcon', 'diamondsIcon', 'clubsIcon'],
    ['simulatedRadioButton', 'simulatedCheckButton', 'simulatedInputField', 'simulatedTextField', 'simulatedDropDownList'],
    ['PDFPrinter', 'Form Filler','saveWithApplet', 'openWithApplet'],
  ];
  
  // Plugins required
  config.extraPlugins = 'pdfPrinter,pageSizeDelimiter,gameCardIcons,simulateFormControls,formFiller,saveWithApplet';
  
  // Standard maximized
  CKEDITOR.on( 'instanceReady', function(e) {
    //e.editor.execCommand('maximize');
  });
};
